import Mock from 'mockjs'


const data = Mock.mock({
  'list|10-20': [{
    "title": '@ctitle',
    "url": '@image(100x100, @color)',
    "desc": '@cword(10,20)',
    "id": '@id',
    "price|10-1000": 1
  }]
})

Mock.mock('/api/list', () => {
  return {
    code: 200,
    data: data.list
  }
})